<template>
  <div class="Mystars">
      <Header>
      <span class="iconfont iconjiantou2" slot="left" @click="$router.back()"></span>
      <span slot="title">我的收藏</span>
    </Header>
<articlecell :post="item" v-for="item in starsArticle" :key="item.id"></articlecell>
  </div>
</template>

<script>
import Header from '../components/header.vue'
import articlecell from '../components/articlecell.vue'
import { myStars } from '../apis/article.js'
export default {
    components: {
        Header,articlecell
    },
    data() {
        return {
            starsArticle:[]
        }
    },
   async mounted() {
        let res = await myStars() 
            console.log(res);
        this.starsArticle = res.data.data    
        
    }
}
</script>

<style>

</style>